package com.example.tse.rbhttpservice.service.goods.model;

import com.example.tse.rbhttpservice.service.RudderResponse;

import java.util.ArrayList;
import java.util.List;


//import com.rbyair.services.goods.model.GoodsGetSimilarListData;
/**
* 获取独立专场列表
* @author wliu
* edit tse
*/
public class GoodsGetSimilarList extends RudderResponse{

private List<GoodsGetSimilarListData> data = new ArrayList<GoodsGetSimilarListData>();


private String name = "";


/**
* @return data
*/
public List<GoodsGetSimilarListData> getData() {
return this.data;
}

/**
* @return data
*/
public void setData(List<GoodsGetSimilarListData> data) {
this.data = data;
}
/**
methodName    Data
type          List<GoodsGetSimilarListData>
name          data
defaultType   new ArrayList<GoodsGetSimilarListData>()
*/

/**
* @return name
*/
public String getName() {
return this.name;
}

/**
* @return name
*/
public void setName(String name) {
this.name = name;
}
/**
methodName    Name
type          String
name          name
defaultType   ""
*/

/**


    private static void filterFor(GoodsGetSimilarListData goods) {
        if (goods.getSimilarId() == null) {
            goods.setSimilarId("");
        }
        if (goods.getCatId() == null) {
            goods.setCatId("");
        }
        if (goods.getName() == null) {
            goods.setName("");
        }
        if (goods.getImg() == null) {
            goods.setImg("");
        }
        if (goods.getImgType() == null) {
            goods.setImgType("");
        }
        if (goods.getLink() == null) {
            goods.setLink("");
        }
        if (goods.getLinkType() == null) {
            goods.setLinkType("");
        }
    }

    public static void filter(GoodsGetSimilarList goods) {
        if (goods.getData() == null) {
            goods.setData(new ArrayList<GoodsGetSimilarListData>());
        } else {
            for (GoodsGetSimilarListData item : goods.getData()) {
                filterFor(item);
            }
        }
        if (goods.getName() == null) {
            goods.setName("");
        }
    }

*/



}
